﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace User.Api.Models
{
    /// <summary>
    /// 接口通用返回对象，适用于只返回一个属性的情境,如添加一个信息后，返回该信息的主键ID等
    /// </summary>
    /// <typeparam name="T">数据类型</typeparam>
    public class ResponseCommon<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="modelID"></param>
        public ResponseCommon(T modelID)
        {
            ModelID = modelID;
        }
        /// <summary>
        /// 对象ID
        /// </summary>
        public T ModelID { get; set; }
    }
}